<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of View
 *
 * @author Zelic
 */
class Lib_View {
    
    function renderComponent($component, $module, $data){
        ob_start();
        include("app/$module/view/component/$component.php");
        $output = ob_get_contents();
        ob_end_clean();
        return $output;
    }
    
    function renderAction($controller, $module, $action, $data){
        ob_start();
        include("app/$module/view/$controller/$action.php");
        $output = ob_get_contents();
        ob_end_clean();
        return $output;
    }
    
    function renderPage($component, $module, $layout){
        ob_start();
        include("app/$module/view/layout/$layout.php");
        $output = ob_get_contents();
        ob_end_clean();
        return $output;
    }
}

?>
